<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="../../include/admincontent.jsp" %>
<div id="location">当前位置：首页 > 招聘实施 > 中专校园招聘</div>
<div id="Content">
    <div id="searchbox">
        <table class="treeTable searchform">
            <thead>
            <tr>
                <td width="60">招聘方案：</td>
                <td width="200">
                    <div><select name="pid">${projects}</select></div>
                </td>
                <td width="60">责任部门：</td>
                <td width="200">
                    <div><select name="deptcode"></select></div>
                </td>
                <td width="40">
                    <button id="searchbtn" type="button" class="search"></button>
                </td>
                <td></td>
            </tr>
            </thead>
        </table>
    </div>
    <div class="help"><b>提示：</b>灰色表示流程未开始；橙色表示流程正在进行；绿色表示流程已结束。</div>
    <div id="result" class="doflow"></div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        getdept();
        $('select[name=pid]').change(function () {
            getdept();
        });
        getList();
        $('#searchbtn').click(function () {
            getList();
        });
    });

    function getList() {
        getAjax('${path}/Do/ZZCampus/getflows?pid=' + $('select[name=pid]').val() + '&deptcode=' + $('select[name=deptcode]').val(), null, function (data) {
            $("#result").html(data);
        });
    }

    function getdept() {
        getAjax('${path}/Do/ZZCampus/getdept?pid=' + $('select[name=pid]').val(), null, function (data) {
            $("select[name=deptcode]").html(data);
        });
    }
</script>
</body>
</html>